package com.xgit.iov.common.core.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(ignoreUnknown = true)
public class DataEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;


    public DataEntity() {
        super();
        this.delFlag = DEL_FLAG_NORMAL;
    }


    /**
     * 创建者
     */
	@ApiModelProperty(hidden = true)
    @TableField(value = "create_by",fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 创建时间
     */
	@ApiModelProperty(hidden = true)
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新者
     */
	@ApiModelProperty(hidden = true)
    @TableField(value = "update_by",fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    /**
     * 更新时间
     */
	@ApiModelProperty(hidden = true)
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 删除标记
     */
    @TableLogic
    @TableField("del_flag")
	@ApiModelProperty(hidden = true)
    private String delFlag;


    /** 请求参数 */
    @TableField(exist=false)
	@ApiModelProperty(hidden = true)
    private Map<String, Object> params;



}
